package cacheinfo;

import com.alibaba.fastjson2.JSON;
import fr.ujm.tse.lt2c.satin.cache.size.CacheInfo;
import fr.ujm.tse.lt2c.satin.cache.size.CacheLevel;
import fr.ujm.tse.lt2c.satin.cache.size.CacheLevelInfo;
import fr.ujm.tse.lt2c.satin.cache.size.CacheType;

/**
 * TODO
 *
 * @author xujian
 * Creation date 2024/8/12 1:01
 * @version 1.0
 */
public class CacheInfoTest {
    public static void main(String[] args) {
        CacheInfo cacheInfo = CacheInfo.getInstance();
        CacheLevelInfo cacheInformation = cacheInfo.getCacheInformation(CacheLevel.L1, CacheType.DATA_CACHE);
        System.out.println(JSON.toJSONString(cacheInformation));
    }
}
